package com.git.bds.mr.records.model.domain;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 修改提交表
 * </p>
 *
 * @author 成大事
 * @since 2022-09-27 16:32:43
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("amendments")
@ApiModel(value = "Amendments对象", description = "修改提交表")
public class Amendments implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("患者id")
    @TableField("patient_id")
    private Long patientId;

    @ApiModelProperty("医生id")
    @TableField("doctor_id")
    private Long doctorId;

    @ApiModelProperty("病历id")
    @TableField("mr_id")
    private Long mrId;

    @ApiModelProperty("(0: 未审核；1：已修改；2：无误)")
    @TableField("status")
    private Integer status;

    @ApiModelProperty("提交时留言")
    @TableField("remark")
    private String remark;

    @ApiModelProperty("回复")
    @TableField("reply")
    private String reply;

    @ApiModelProperty("提交时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty("修改时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;


    public static final String ID = "id";

    public static final String PATIENT_ID = "patient_id";

    public static final String DOCTOR_ID = "doctor_id";

    public static final String MR_ID = "mr_id";

    public static final String STATUS = "status";

    public static final String REMARK = "remark";

    public static final String REPLAY = "reply";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_TIME = "update_time";

}
